package com.ruoyi.emergency.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.emergency.service.IEmergencyMedicalOrgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.emergency.mapper.EmergencyMedicalOrgMapper;
import com.ruoyi.emergency.domain.EmergencyMedicalOrg;

/**
 * 应急医疗救援机构Service业务层处理
 * 
 * @author hcc
 * @date 2024-11-17
 */
@Service
public class EmergencyMedicalOrgServiceImpl extends ServiceImpl<EmergencyMedicalOrgMapper, EmergencyMedicalOrg> implements IEmergencyMedicalOrgService //修改
{
    @Autowired
    private EmergencyMedicalOrgMapper emergencyMedicalOrgMapper;

    /**
     * 查询应急医疗救援机构
     * 
     * @param id 应急医疗救援机构主键
     * @return 应急医疗救援机构
     */
    @Override
    public EmergencyMedicalOrg selectEmergencyMedicalOrgById(Long id)
    {
        return emergencyMedicalOrgMapper.selectEmergencyMedicalOrgById(id);
    }

    /**
     * 查询应急医疗救援机构列表
     * 
     * @param emergencyMedicalOrg 应急医疗救援机构
     * @return 应急医疗救援机构
     */
    @Override
    public List<EmergencyMedicalOrg> selectEmergencyMedicalOrgList(EmergencyMedicalOrg emergencyMedicalOrg)
    {
        return emergencyMedicalOrgMapper.selectEmergencyMedicalOrgList(emergencyMedicalOrg);
    }

    /**
     * 新增应急医疗救援机构
     * 
     * @param emergencyMedicalOrg 应急医疗救援机构
     * @return 结果
     */
    @Override
    public int insertEmergencyMedicalOrg(EmergencyMedicalOrg emergencyMedicalOrg)
    {
        return emergencyMedicalOrgMapper.insertEmergencyMedicalOrg(emergencyMedicalOrg);
    }

    /**
     * 修改应急医疗救援机构
     * 
     * @param emergencyMedicalOrg 应急医疗救援机构
     * @return 结果
     */
    @Override
    public int updateEmergencyMedicalOrg(EmergencyMedicalOrg emergencyMedicalOrg)
    {
        return emergencyMedicalOrgMapper.updateEmergencyMedicalOrg(emergencyMedicalOrg);
    }

    /**
     * 批量删除应急医疗救援机构
     * 
     * @param ids 需要删除的应急医疗救援机构主键
     * @return 结果
     */
    @Override
    public int deleteEmergencyMedicalOrgByIds(Long[] ids)
    {
        return emergencyMedicalOrgMapper.deleteEmergencyMedicalOrgByIds(ids);
    }

    /**
     * 删除应急医疗救援机构信息
     * 
     * @param id 应急医疗救援机构主键
     * @return 结果
     */
    @Override
    public int deleteEmergencyMedicalOrgById(Long id)
    {
        return emergencyMedicalOrgMapper.deleteEmergencyMedicalOrgById(id);
    }
}
